package o;

import com.huawei.appgallery.purchasehistory.api.bean.GetBuyHistoryResBean;
import com.huawei.appgallery.purchasehistory.impl.PurchaseHistoryManager;
import com.huawei.appgallery.serverreqkit.api.bean.ResponseBean;
import com.huawei.appgallery.serverreqkit.api.listener.IServerCallBack;

public class ctf implements IServerCallBack {
    private cia ˊ;

    public ctf(cia o_cia) {
        this.ˊ = o_cia;
    }

    public void prePostResult(BaseRequest o_cvu, ResponseBean responseBean) {
    }

    public void notifyResult(BaseRequest o_cvu, ResponseBean responseBean) {
        if (responseBean.getResponseCode() == 0 && responseBean.getRtnCode_() == 0 && (responseBean instanceof GetBuyHistoryResBean)) {
            PurchaseHistoryManager.getHelper().ˊ(((GetBuyHistoryResBean) responseBean).tradeInfos_);
            if (this.ˊ != null) {
                this.ˊ.ͺ();
            }
        }
    }
}
